package cn.tedu.order.comtroller;

import cn.HK.po.Order;
import cn.tedu.order.service.StateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StateComtroller {
    @Autowired
    private StateService stateService;
    /*
        请求地址:/order/state
        请求参数:Order order
        请求方式:Post
    */
    @RequestMapping(value = "/order/state",method = RequestMethod.POST)
    public void orderstate(Order order){
        stateService.queryState(order);
    }
}
